<?php $current = strtolower($this->uri->rsegment(1)) ?>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title><?php echo $title; ?></title>
<!--[if IE]>
	<script src="<?php echo RESOURCE_URL.TEMPLATE_PROJECT.'/' ?>common/html5.js"></script>
	<link type="text/css" rel="stylesheet" href="<?php echo RESOURCE_URL.TEMPLATE_PROJECT.'/common/' ?>ie.min.css" />
	<link type="text/css" rel="stylesheet" href="<?php echo RESOURCE_URL.TEMPLATE_PROJECT.'/common/' ?>ie6.min.css" />
<![endif]-->
<link rel="icon" href="/favicon<?php echo (ENVIRONMENT=='production')?'':'-debug' ?>.ico" type="image/x-icon" />
<link rel="shortcut icon" href="/favicon<?php echo (ENVIRONMENT=='production')?'':'-debug' ?>.ico" type="image/x-icon" />

<script type="text/javascript" src="<?php echo RESOURCE_URL.TEMPLATE_PROJECT.'/' ?>common/jquery-1.8.3.min.js"></script>
<link type="text/css" rel="stylesheet" href="<?php echo RESOURCE_URL.TEMPLATE_PROJECT.'/' ?>style.css" />
<script type="text/javascript" src="<?php echo RESOURCE_URL.TEMPLATE_PROJECT.'/' ?>jscript.js"></script>

<?php require TEMPLATECSS_PATH.$ctrlName.'.php'; ?>

<script type="text/javascript">
	new Image().src = '<?php echo RESOURCE_URL.TEMPLATE_PROJECT.'/' ?>sprite.png';
</script>
</head>
<body>

<?php include dirname(__FILE__).'/header.php'; ?>